package fantasy;

import java.util.Set;

import javax.jdo.annotations.EmbeddedOnly;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class LeagueStandings {

    @PrimaryKey
    @Persistent
    private Key teamkeystamp;
    
    @Persistent
    private LeagueTeams team;
    
    @Persistent(mappedBy = "statentry")
    private Set<TeamStats> stats;
    
    @Persistent
    private Double teampoints;

    @Persistent
    private Integer teamrank;
    
	public Key getTeamkeystamp() {
		return teamkeystamp;
	}

	public void setTeamkeystamp(Key teamkeystamp) {
		this.teamkeystamp = teamkeystamp;
	}

	public Set<TeamStats> getStats() {
		return stats;
	}

	public void setStats(Set<TeamStats> stats) {
		this.stats = stats;
	}

	public void addStats(TeamStats stats) {
		this.stats.add(stats);
	}

	public void removeStats(TeamStats stats) {
		this.stats.remove(stats);
	}

	public Double getTeampoints() {
		return teampoints;
	}

	public void setTeampoints(Double teampoints) {
		this.teampoints = teampoints;
	}

	public Integer getTeamrank() {
		return teamrank;
	}

	public void setTeamrank(Integer teamrank) {
		this.teamrank = teamrank;
	}

	public void setTeam(LeagueTeams team) {
		this.team = team;
	}

	public LeagueTeams getTeam() {
		return team;
	}
    
    

}
